package pl.edu.agh.portal.application.portlets;

import java.io.IOException;

import javax.portlet.GenericPortlet;
import javax.portlet.PortletException;
import javax.portlet.PortletRequestDispatcher;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;

public abstract class ThesisGenericPortlet extends GenericPortlet {

	private PortletRequestDispatcher normalView;
		
	public PortletRequestDispatcher getNormalView() {
		return normalView;
	}
	
	public void setNormalView(PortletRequestDispatcher normalView) {
		this.normalView = normalView;
	}
	
	public void emergencyDoView(RenderRequest request, RenderResponse response) throws PortletException, IOException {
		normalView.include(request, response);
	}
}
